{#template MAIN}
<h1>菜谱列表</h1>
<ul class="rounded">
	{#foreach $T as Item}
		<li>
		<div class="foodItem" onclick='bill.showBillMenu({$T.Item.id})' >
			<div class="foodName" >{$T.Item.name}</div>
			<div class="field"> 
			<span class="toggle" onclick='bill.toggleMenu({JSON.stringify($T.Item)})'><input name="status" {#if $T.Item.count>0 } checked="checked"} {#/if} type="checkbox"> </span></span> </div>
			<div class="clear"></div>
			</div>
		</li>
	{#/for}
</ul>
{#/template MAIN}
